#include "stdafx.h"

#include "CustomProperty.h"

using namespace DsoFileNET;

generic <typename T>
CustomProperty<T>::CustomProperty(System::String ^name, T propId, System::Object ^data, bool newItem)
{
	this->name = name;
	this->propId = propId;
	this->data = data;
}

generic <typename T>
String^ CustomProperty<T>::Name::get()
{
	return this->name;
}

generic <typename T>
FilePropertyType CustomProperty<T>::Type::get()
{
	return FilePropertyType::Unknown;
}


generic <typename T>
Object^ CustomProperty<T>::Value::get()
{
	return this->data;
}

generic <typename T>
void CustomProperty<T>::Value::set(Object^ value)
{
	this->data = value;
}

generic <typename T>
T CustomProperty<T>::PropId::get()
{
	return this->propId;
}
